<template>
  <el-dialog :title="!appDetail.id ? '新增' : '编辑'" v-model="appShowDetail" width="500px" :before-close="appHandleClose">
    <el-form label-position="right" :model="appDetail" ref="appForm" label-width="80px">
      <el-row :gutter="35">
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
          <el-form-item label="标题" prop="title" :rules="[{ required: true, message: '标题不能为空', trigger: 'blur' }]">
            <el-input v-model="appDetail.title" clearable />
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
          <el-form-item label="状态">
            <el-select v-model="appDetail.state" placeholder="请选择">
              <el-option
                v-for="(item, index) in [
                  { label: '待审核', value: 0 },
                  { label: '上线', value: 1 },
                  { label: '下线', value: 2 },
                ]"
                :key="index"
                :label="item.label"
                :value="item.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>

    <template #footer>
      <el-button @click="appShowDetail = false">取 消</el-button>
      <el-button type="primary" @click="appHandleSubmit">确 定</el-button>
    </template>
  </el-dialog>
</template>

<script>
import { mixins } from 'jax-node'

export default {
  mixins: [mixins.pageEdit],
  data() {
    return {
      // 弹窗详情默认参数
      appDefaultDetail: {
        state: 0,
      },

      menuList: [],
    }
  },
  created() {},
  methods: {},
}
</script>

<style lang="scss" scoped></style>
